home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-10-22 | 1.7 KB | 75 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="3"
- "COUNT"="1"
- "UIPATH"="Network\Login\1) Booting"
- "NAME"="Windows 9x Logon Picture"
- "VERSION"="1.12"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Picture 1"
- "DATA 1"="Bitmap picturs (*.BMP)|*.bmp"
- "DESCRIPTION 1"="This plug-in can be used to change the picture that is displayed when starting Windows."
- "DESCRIPTION 4"="NOTE: The picture should be 320x400 pixels with 256 colors."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
-
-
- Sub Plugin_Initialize
- if GetWinVer=1 or GetWinVer=3 then
- 'SetUIElement 1,GetWinDir
- SetUIElement 1,"C:\"
- else
- Disable
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- if len(s)>0 then
- Call DoWork("LOGO.SYS","LOGO.XSB",s)
- Call Restart
- end if
-
- ' s=GetUIElement(2)
- ' if len(s)>0 then
- ' Call DoWork("LOGOS.SYS","LOGOS.XSB",s)
- ' Call Restart
- ' end if
-
- Call MsgInformation("The new logo has been set.")
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-
-
- Sub DoWork(File1,BackupFile,NewFile)
- 's1=GetWinDir & File1
- s1="C:\" & File1
- s2="C:\" & BackupFile
- s3=NewFile
-
- 'if backup exists, delete it
- if FileExists(s2) then
- Call FileSetAttribute(s2,"S-")
- Call FileSetAttribute(s2,"R-")
- Call FileSetAttribute(s2,"H-")
- Call FileDelete(s2)
- end if
-
- 'make backup of current file
- if FileExists(s1) then
- Call FileSetAttribute(s2,"S-")
- Call FileSetAttribute(s2,"R-")
- Call FileSetAttribute(s2,"H-")
- Call FileCopy(s1,s2)
- Call FileDelete(s1)
- end if
-
- 'now copy new file to old file
- Call FileCopy(s3,s1)
- End Sub
-